isNatural

open fun isNatural(value: Int)

test if a numeric value is greater or equal 0

Parameters

value

value to test

Throws

when value is not not greater 0


open fun isNatural(value: Int, name: String)

test if a numeric value is greater or equal 0

Parameters

value

value to test

name

value name for better error message

Throws

when value is not greater or equal 0